import { createApp } from 'vue'
import './style.css'
import App from './App.vue'
import 模块 from './views/模块/list.vue'
import { createRouter,createWebHashHistory} from "vue-router";

import 代码生成界面 from './views/代码生成界面/index.vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'

import installg from './components/g'
const router = new createRouter({
 history:createWebHashHistory(),
    routes: [
      // 动态路径参数 以冒号开头
      { path: '/', component: 模块 },
      { path: '/generate', component: 代码生成界面 },
      { path: '/plm_urgent_limit_config_log', component: ()=>import('./views/plm_urgent_limit_config_log/list.vue') },
      { path: '/live_anchor_live_list', component: ()=>import('./views/live_anchor_live_list/list.vue') },
      { path: '/dws_sale_brand_platform_day', component: ()=>import('./views/dws_sale_brand_platform_day/list.vue') },
      
      { path: '/erp_cyberstar', component: ()=>import('./views/erp_cyberstar/list.vue') },
      { path: '/tb_task', component: ()=>import('./views/tb_task/list.vue') },
      { path: '/taskweek', component: ()=>import('./views/tb_task/taskweek.vue') },
      { path: '/tb_dict', component: ()=>import('./views/tb_dict/list.vue') },


]
  })

var app=createApp(App)
app.use(ElementPlus,{size:'mini'})
app.use(router)
installg(app)
window._app=app;

window._app123=app.mount('#app')
